/* 修改container的最大宽度为1280px */
@media screen and (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }

}

body {
    background-color: #f5f5f5;
}

.container {
    background-color: #fff;
}

a {
    text-decoration: none;
    color: #666;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

header {
    padding-left: 0 !important;

}

.logo {
    background-color: #3591d4;

}

.logo img {

    /* width: 100%; */
    /* logo图片不需要缩放 */
    display: block;
    max-width: 100%;
    margin: 0 auto;

}

/*1 如果进入了超小屏幕下 logo里面的图片就隐藏起来*/
/* 2 事先准备好一个盒子，在logo里面，它平时是隐藏起来的，只有在超小屏幕下显示 */
.logo span {
    display: block;
    height: 50px;
    line-height: 50px;
    color: #fff;
    font-size: 18px;
    text-align: center;
}


.nav {
    background-color: #eee;
    border-bottom: 1px solid #ccc;
    flex-direction: column;
    /* width: 100%; */
}

/* 当从中屏幕md进入到小sm 超小xs nav里面的li浮动起来 并且宽度20% */
@media screen and (max-width:767px) {
    .nav li {
        float: left;
        width: 20%;
    }

    .nav li a {
        padding: 0;
        text-align: center;
    }

    /* 并且离导航栏点距离 */
    article {
        margin-top: 10px !important;

    }
}


/* 当从进入超小屏幕 字体变小 */
@media screen and (max-width:575px) {
    .nav li a {
        font-size: 14px;
    }


}

@media screen and (max-width:991px) {
    .nav li a {
        padding: 10px;
    }

}

.nav a {
    display: block;
    height: 50px;
    width: 100%;
    line-height: 50px;
    padding-left: 30px;

}

.nav a:hover {
    background-color: #fff;
    color: #333;
}


.news li {
    width: 25%;
    float: left;
    height: 128px;
    padding-right: 10px;
    margin-bottom: 10px;
}

/* 当我们处在超小屏幕xs 第一个li宽100% 剩下li各占50% */
@media screen and (max-width:575px) {
    .news li:nth-child(1) {
        width: 100% !important;
    }

    .news li {
        width: 50% !important;
    }

    .publish .pic {
        display: none;
    }

    .publish h3 {
        font-size: 16px !important;
    }

}

.news li:nth-child(1) {
    width: 50%;
    height: 266px;

}

.news li a img {
    width: 100%;
    height: 100%;
}

.news li a {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.news li:first-child a p {
    line-height: 41px;
    font-size: 20px;
    padding: 0 10px;
}

.news li a p {
    margin: 0;
    width: 100%;
    height: 41px;
    background: rgba(0, 0, 0, .5);
    font-size: 12px;
    color: #fff;
    position: absolute;
    bottom: 0;
    padding: 5px 10px 0;
    /* white-space: nowrap; */
    overflow: hidden;
    text-overflow: ellipsis;
}

.publish {
    border-top: 1px solid #ccc;
}

.publish h3 {
    font-size: 24px;
}

.publish p {
    font-size: 14px;
    margin-bottom: 10px;
}

.publish .row {
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
}

.pic {
    margin-top: 10px;
}

.con {
    margin-top: 20px;
}

.pic img {
    width: 100%;
}

.banner img {
    width: 100%;
}

.hot {
    border: 1px solid #ccc;
    margin-top: 20px;
    display: block;
    padding: 0 20px 20px;
}

.hot p {
    font-size: 12px;
}

.hot span {
    border-radius: 0;
    margin-bottom: 10px;
}